
#ifndef my_main_h
#define my_main_h

#define MAX_NEEDFREE 10
#define MAX_NEEDCLOSE 10

#include <stdlib.h>

void *need_free[MAX_NEEDFREE] = {0};
unsigned int need_free_index = 0;

int need_close[MAX_NEEDCLOSE] = {0};
unsigned int need_close_index = 0;

void add_need_free(void *need);
void add_need_close(int need);
void out();
void print_green(char * s);
void print_yellow(char * s);
void print_red(char * s);
void print_success();
void print_info();
void my_perror(char * s);
#endif